package com.zz.service;

import com.spring.*;


@Component(value = "userservice")
//@Scope(value = "p")
public class UserServiceImpl implements BeanNameAware , InitializingBean, UserService {
   @Autowired
   OrderService orderService;

   private String name;
   public void test(){

       System.out.println(orderService);
       System.out.println(name);
   }

    @Override
    public void setBeanName(String name) {
        this.name=name;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("开始初始化");
    }
}
